package ccmouse.guice.v13.helloworlddemo;

import javax.inject.Inject;
import java.io.PrintStream;

public class PrintStreamWriterV4 implements MyDestinationV4 {

    private PrintStream destination;

    @Inject
    public PrintStreamWriterV4(PrintStream destination) {
        this.destination = destination;
    }

    @Override
    public void write(String s) {
        destination.println(s);
    }
}
